use "$pathdata/Upload/Final_data_groups.dta", clear

* Coefficients for Figure 2
eststo clear
eststo: qui reg prosociality markets_index motifs_total motifs_total_sqr dum_cont*, cl(lang_family)
eststo: qui reg prosociality markets_index motifs_total motifs_total_sqr $controls dum_cont*, cl(lang_family)
eststo: qui reg prosociality markets_index motifs_total motifs_total_sqr $controls dum_count*, cl(lang_family)
eststo: qui ivreg2 prosociality (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr dum_cont*, cl(lang_family)
eststo: qui ivreg2 prosociality (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr  $controls dum_cont*, cl(lang_family)
eststo: qui ivreg2 prosociality (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr  $controls dum_count*, cl(lang_family)
eststo: qui reg trust markets_index motifs_total motifs_total_sqr dum_cont*, cl(lang_family)
eststo: qui reg trust markets_index motifs_total motifs_total_sqr  $controls dum_cont*, cl(lang_family)
eststo: qui reg trust markets_index motifs_total motifs_total_sqr  $controls dum_count*, cl(lang_family)
eststo: qui ivreg2 trust (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr dum_cont*, cl(lang_family)
eststo: qui ivreg2 trust (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr $controls dum_cont*, cl(lang_family)
eststo: qui ivreg2 trust (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr $controls dum_count*, cl(lang_family)
eststo: qui reg rel_universal markets_index motifs_total motifs_total_sqr dum_cont*, cl(lang_family)
eststo: qui reg rel_universal markets_index motifs_total motifs_total_sqr $controls dum_cont*, cl(lang_family)
eststo: qui reg rel_universal markets_index motifs_total motifs_total_sqr $controls dum_count*, cl(lang_family)
eststo: qui ivreg2 rel_universal (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr dum_cont*, cl(lang_family)
eststo: qui ivreg2 rel_universal (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr $controls dum_cont*, cl(lang_family)
eststo: qui ivreg2 rel_universal (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr $controls dum_count*, cl(lang_family)
eststo: qui reg emotions markets_index motifs_total motifs_total_sqr dum_cont*, cl(lang_family)
eststo: qui reg emotions markets_index motifs_total motifs_total_sqr $controls dum_cont*, cl(lang_family)
eststo: qui reg emotions markets_index motifs_total motifs_total_sqr $controls dum_count*, cl(lang_family)
eststo: qui ivreg2 emotions (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr dum_cont*, cl(lang_family)
eststo: qui ivreg2 emotions (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr $controls dum_cont*, cl(lang_family)
eststo: qui ivreg2 emotions (markets_index=proximity_trade_route std_eco_polarization) motifs_total motifs_total_sqr $controls dum_count*, cl(lang_family)

esttab
esttab 	using "$pathout/Coef plot/combined_p.csv", replace plain p(4) drop(_cons) b(a2) nostar indicate("Continent FE=*cont*")  label 

esttab
esttab 	using "$pathout/Coef plot/combined_t.csv", replace plain t(4) drop(_cons) b(a2) nostar indicate("Continent FE=*cont*")  label 

set level 95
esttab 	using "$pathout/Coef plot/combined_ci.csv", replace plain ci drop(_cons) b(a2) nostar indicate("Continent FE=*cont*")  label 
